﻿using System;
using System.Collections.Generic;
using Zzt.ExpertsCore.Domain.Models.Enums;

namespace Zzt.ExpertsCore.Domain.Entities
{
    /// <summary>
    /// 招标抽取任务
    /// </summary>
    public class Extraction : BaseRecordEntity
    {
        /// <summary>
        /// 所属的招标项目
        /// </summary>
        public int BidId { get; set; }
        public virtual Bid Bid { get; set; }
        /// <summary>
        /// 招标地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 招标时间
        /// </summary>
        public DateTimeOffset? Deadline { get; set; }
        /// <summary>
        /// 执行状态
        /// </summary>
        public ExtractionStatus Status { get; set; } = ExtractionStatus.Initialization;
        /// <summary>
        /// 计划抽取专家总人数
        /// </summary>
        public int? TargetCount { get; set; }
        /// <summary>
        /// 抽取公式集合
        /// </summary>
        public virtual ICollection<Principle> Principles { get; set; } = new List<Principle>();
    }
}
